#pragma once
#include "Collider.h"



namespace Boon
{

	class BOON_API ColliderSphere : public Collider
	{
		GAMECOMPONENT( ColliderSphere, Collider )

	public:
		virtual Bounds				GetBounds() const sealed;
		inline float				GetRadius() const { return m_Radius; }
		inline void					SetRadius( float radius ) { m_Radius = abs( radius ); SetDirty(); }
		virtual ColliderType		GetType() const;
	
	protected:
		virtual void				OnCreate();

	private:

		float						m_Radius;

	};

}
